/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using MediatR;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "设备基础信息表",TableName = "EQU_EQUIPMENT")]
    public partial class EQU_EQUIPMENT:BaseEntity
    {
        /// <summary>
       ///Id
       /// </summary>
       [Key]
       [Display(Name ="Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid Id { get; set; }

       /// <summary>
       ///设备编码
       /// </summary>
       [Display(Name ="设备编码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string EquipmentCode { get; set; }

       /// <summary>
       ///在线或离线
       /// </summary>
       [Display(Name ="在线或离线")]
       [Column(TypeName="bit")]
       public bool? IsOnline { get; set; }

       /// <summary>
       ///刀柄类型
       /// </summary>
       [Display(Name ="刀柄类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string HolderTypeId { get; set; }

       /// <summary>
       ///设备名称
       /// </summary>
       [Display(Name ="设备名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string EquipmentNameZH { get; set; }

       /// <summary>
       ///设备类型
       /// </summary>
       [Display(Name ="设备类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string EquipmentType { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreateBy { get; set; }

       /// <summary>
       ///主机地址
       /// </summary>
       [Display(Name ="主机地址")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string host { get; set; }

       /// <summary>
       ///端口号
       /// </summary>
       [Display(Name ="端口号")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? port { get; set; }

       /// <summary>
       ///通信方式
       /// </summary>
       [Display(Name ="通信方式")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CommunicationType { get; set; }

       /// <summary>
       ///图
       /// </summary>
       [Display(Name ="图")]
       [MaxLength(500)]
       [Column(TypeName="nvarchar(500)")]
       [Editable(true)]
       public string Img { get; set; }

       /// <summary>
       ///产线X值
       /// </summary>
       [Display(Name ="产线X值")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? XLocation { get; set; }

       /// <summary>
       ///是否原点
       /// </summary>
       [Display(Name ="是否原点")]
       [Column(TypeName="bit")]
       public bool? IsBaseLocation { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateOn { get; set; }

       /// <summary>
       ///是否占用路径
       /// </summary>
       [Display(Name ="是否占用路径")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       public string IsOccupyPath { get; set; }

       /// <summary>
       ///设备状态
       /// </summary>
       [Display(Name ="设备状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? StateCode { get; set; }

       /// <summary>
       ///规格
       /// </summary>
       [Display(Name ="规格")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Specification { get; set; }

       /// <summary>
       ///加工材质
       /// </summary>
       [Display(Name ="加工材质")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProcessingMaterial { get; set; }

       /// <summary>
       ///当前工单
       /// </summary>
       [Display(Name ="当前工单")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string CurrentOrder { get; set; }

       /// <summary>
       ///更新人
       /// </summary>
       [Display(Name ="更新人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string UpdateBy { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? LastUpdateOn { get; set; }

       /// <summary>
       ///逻辑删除 0/不删除 1/已删除
       /// </summary>
       [Display(Name ="逻辑删除 0/不删除 1/已删除")]
       [Column(TypeName="bit")]
       [Editable(true)]
       public bool? IsDeleted { get; set; }

       /// <summary>
       ///描述1
       /// </summary>
       [Display(Name ="描述1")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Description { get; set; }

       /// <summary>
       ///新建/激活/保留/废除
       /// </summary>
       [Display(Name ="新建/激活/保留/废除")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Status { get; set; }

       /// <summary>
       ///机床名称
       /// </summary>
       [Display(Name ="机床名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string name { get; set; }

       /// <summary>
       ///机床规格
       /// </summary>
       [Display(Name ="机床规格")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string latheSpec { get; set; }

       /// <summary>
       ///机床系统
       /// </summary>
       [Display(Name ="机床系统")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string machine_type { get; set; }

       /// <summary>
       ///加工类型
       /// </summary>
       [Display(Name ="加工类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string process_type { get; set; }

       /// <summary>
       ///夹爪平台高度
       /// </summary>
       [Display(Name ="夹爪平台高度")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? tool_height { get; set; }

       /// <summary>
       ///对刀仪基准距加工平台距离
       /// </summary>
       [Display(Name ="对刀仪基准距加工平台距离")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal g54_supplement { get; set; }

       /// <summary>
       ///加工精度
       /// </summary>
       [Display(Name ="加工精度")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string process_precision { get; set; }

       /// <summary>
       ///行程X
       /// </summary>
       [Display(Name ="行程X")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? itinerary_x { get; set; }

       /// <summary>
       ///行程Y
       /// </summary>
       [Display(Name ="行程Y")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? itinerary_y { get; set; }

       /// <summary>
       ///行程Z
       /// </summary>
       [Display(Name ="行程Z")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? itinerary_z { get; set; }

       /// <summary>
       ///原始基准点X
       /// </summary>
       [Display(Name ="原始基准点X")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal basic_x { get; set; }

       /// <summary>
       ///原始基准点Y
       /// </summary>
       [Display(Name ="原始基准点Y")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal basic_y { get; set; }

       /// <summary>
       ///原始基准点Z
       /// </summary>
       [Display(Name ="原始基准点Z")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal basic_z { get; set; }

       /// <summary>
       ///换刀位置x
       /// </summary>
       [Display(Name ="换刀位置x")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? change_tool_x { get; set; }

       /// <summary>
       ///换刀位置Y
       /// </summary>
       [Display(Name ="换刀位置Y")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? change_tool_y { get; set; }

       /// <summary>
       ///换刀位置z
       /// </summary>
       [Display(Name ="换刀位置z")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? change_tool_z { get; set; }

       /// <summary>
       ///上料位置x
       /// </summary>
       [Display(Name ="上料位置x")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? feed_x { get; set; }

       /// <summary>
       ///上料位置y
       /// </summary>
       [Display(Name ="上料位置y")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? feed_y { get; set; }

       /// <summary>
       ///上料位置z
       /// </summary>
       [Display(Name ="上料位置z")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? feed_z { get; set; }

       /// <summary>
       ///机床编号
       /// </summary>
       [Display(Name ="机床编号")]
       [Column(TypeName="int")]
       public int? unit { get; set; }

       /// <summary>
       ///NC类型
       /// </summary>
       [Display(Name ="NC类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string nc_type { get; set; }

       /// <summary>
       ///NC卡编号
       /// </summary>
       [Display(Name ="NC卡编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string nc_card_no { get; set; }

       /// <summary>
       ///使用状态
       /// </summary>
       [Display(Name ="使用状态")]
       [Column(TypeName="bit")]
       public bool? use_status { get; set; }

       /// <summary>
       ///设备当前点位
       /// </summary>
       [Display(Name ="设备当前点位")]
       [Column(TypeName="int")]
       public int? CurrentSubPathNo { get; set; }

       /// <summary>
       ///目标点位
       /// </summary>
       [Display(Name ="目标点位")]
       [Column(TypeName="int")]
       public int? TargetSubPathNo { get; set; }

       /// <summary>
       ///范围右
       /// </summary>
       [Display(Name ="范围右")]
       [Column(TypeName="int")]
       public int? RangeR { get; set; }

       /// <summary>
       ///范围左
       /// </summary>
       [Display(Name ="范围左")]
       [Column(TypeName="int")]
       public int? RangeL { get; set; }

       /// <summary>
       ///加工范围
       /// </summary>
       [Display(Name ="加工范围")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string MachineRange { get; set; }

       /// <summary>
       ///设备指令
       /// </summary>
       [Display(Name ="设备指令")]
       [MaxLength(150)]
       [Column(TypeName="nvarchar(150)")]
       [Editable(true)]
       public string EquCommds { get; set; }

       /// <summary>
       ///避让点X
       /// </summary>
       [Display(Name ="避让点X")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? AvoidX { get; set; }

       /// <summary>
       ///避让点Y
       /// </summary>
       [Display(Name ="避让点Y")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? AvoidY { get; set; }

       /// <summary>
       ///当前点X
       /// </summary>
       [Display(Name ="当前点X")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? CurrentX { get; set; }

       /// <summary>
       ///当前点Y
       /// </summary>
       [Display(Name ="当前点Y")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? CurrentY { get; set; }

       /// <summary>
       ///测量工具位置
       /// </summary>
       [Display(Name ="测量工具位置")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Location { get; set; }

       /// <summary>
       ///最大承重KG
       /// </summary>
       [Display(Name ="最大承重KG")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? MaxLoadCapacity { get; set; }

       /// <summary>
       ///年总使用时间
       /// </summary>
       [Display(Name ="年总使用时间")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       public decimal? YearTotalTime { get; set; }

       /// <summary>
       ///机床最大刀长
       /// </summary>
       [Display(Name ="机床最大刀长")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? MaxKnifeLength { get; set; }

       /// <summary>
       ///设备序号
       /// </summary>
       [Display(Name ="设备序号")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       [Editable(true)]
       public string EquipmentNo { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Door1")]
       [Column(TypeName="bit")]
       public bool? Door1 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OpenedDoor1")]
       [Column(TypeName="bit")]
       public bool? OpenedDoor1 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ClosedDoor1")]
       [Column(TypeName="bit")]
       public bool? ClosedDoor1 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Door2")]
       [Column(TypeName="bit")]
       public bool? Door2 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OpenedDoor2")]
       [Column(TypeName="bit")]
       public bool? OpenedDoor2 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ClosedDoor2")]
       [Column(TypeName="bit")]
       public bool? ClosedDoor2 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="DuiDaoDoor")]
       [Column(TypeName="bit")]
       public bool? DuiDaoDoor { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OpenedDuiDaoDoor")]
       [Column(TypeName="bit")]
       public bool? OpenedDuiDaoDoor { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ClosedDuiDaoDoor")]
       [Column(TypeName="bit")]
       public bool? ClosedDuiDaoDoor { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Dangliao")]
       [Column(TypeName="bit")]
       public bool? Dangliao { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OpenedDangliao")]
       [Column(TypeName="bit")]
       public bool? OpenedDangliao { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ClosedDangliao")]
       [Column(TypeName="bit")]
       public bool? ClosedDangliao { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Ci")]
       [Column(TypeName="bit")]
       public bool? Ci { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="OpenedCi")]
       [Column(TypeName="bit")]
       public bool? OpenedCi { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ClosedCi")]
       [Column(TypeName="bit")]
       public bool? ClosedCi { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="WarningCi")]
       [Column(TypeName="bit")]
       public bool? WarningCi { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="JiaDao")]
       [Column(TypeName="bit")]
       public bool? JiaDao { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="SongDao")]
       [Column(TypeName="bit")]
       public bool? SongDao { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="M30")]
       [Column(TypeName="bit")]
       public bool? M30 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="AllowShangXiaHuan")]
       [Column(TypeName="bit")]
       public bool? AllowShangXiaHuan { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="AllowHuanDao")]
       [Column(TypeName="bit")]
       public bool? AllowHuanDao { get; set; }

       /// <summary>
       ///线
       /// </summary>
       [Display(Name ="线")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string WorkCenterId { get; set; }

       /// <summary>
       ///工单
       /// </summary>
       [Display(Name ="工单")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string OrderCode { get; set; }

       /// <summary>
       ///转速
       /// </summary>
       [Display(Name ="转速")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? RotationalSpeed { get; set; }

       /// <summary>
       ///上位机在线时间
       /// </summary>
       [Display(Name ="上位机在线时间")]
       [Column(TypeName="datetime")]
       public DateTime? UpperProgramOn { get; set; }

       /// <summary>
       ///使能
       /// </summary>
       [Display(Name ="使能")]
       [Column(TypeName="bit")]
       public bool? IsEnable { get; set; }

       /// <summary>
       ///设备运行状态
       /// </summary>
       [Display(Name ="设备运行状态")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       public string RunStatus { get; set; }

       /// <summary>
       ///运行时间
       /// </summary>
       [Display(Name ="运行时间")]
       [Column(TypeName="datetime")]
       public DateTime? RunTime { get; set; }

       /// <summary>
       ///最大R角
       /// </summary>
       [Display(Name ="最大R角")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Max_reality_R { get; set; }

       /// <summary>
       ///是否异常
       /// </summary>
       [Display(Name ="是否异常")]
       [Column(TypeName="bit")]
       [Editable(true)]
       public bool? IsException { get; set; }

       /// <summary>
       ///O0995
       /// </summary>
       [Display(Name ="O0995")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Content5 { get; set; }

       /// <summary>
       ///O0996
       /// </summary>
       [Display(Name ="O0996")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Context6 { get; set; }

       /// <summary>
       ///O0997
       /// </summary>
       [Display(Name ="O0997")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Context7 { get; set; }

       /// <summary>
       ///1000
       /// </summary>
       [Display(Name ="1000")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Content1000 { get; set; }

       /// <summary>
       ///刀补值
       /// </summary>
       [Display(Name ="刀补值")]
       [DisplayFormat(DataFormatString="18,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ZIndex { get; set; }

       /// <summary>
       ///栅栏门
       /// </summary>
       [Display(Name ="栅栏门")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       [Editable(true)]
       public string FenceGate { get; set; }

       
    }
}